package com.xm.adv.viewholder;

import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.LayoutRes;

import com.xm.adv.R;
import com.xm.adv.bean.OpenCloseBean;

import xinya.com.baselibrary.easyrecyclerview.adapter.BaseViewHolder;


/**
 * Created by Administrator on 2017/3/28 0028.
 */
public class OpenCloseViewHolder extends BaseViewHolder<OpenCloseBean> {

    private final TextView textStartTime;
    private final TextView textEndTime;

    public OpenCloseViewHolder(ViewGroup parent, @LayoutRes int res) {
        super(parent, res);
        textStartTime = $(R.id.textStartTime);
        textEndTime = $(R.id.textEndTime);
    }

    @Override
    public void setData(OpenCloseBean data) {
        super.setData(data);
        textStartTime.setText("开机时间：" + data.getStartTime());
        textEndTime.setText("关机时间：" + data.getEndTime());
    }

}
